package com.opennetexam.manager.enums;

/**
 * 保存答案返回结果
 * Created by admin on 2017/12/27.
 */
public enum SaveAnswerType {

    SAVE_FAILED("保存失败",0),
    SAVE_SUCCESS("保存成功",1),
    CACHE_LOST("缓存丢失",2),
    MANDATORY_PAPER("已被强制交卷",3),
    LOGIN_OTHER_COMPUTER("已在其他考试机登录",4),
    PAPERS_HAVE_BEEN("已交卷",5),
    ;

    String display;
    Integer prefix;

    SaveAnswerType(String display, Integer prefix) {
        this.display = display;
        this.prefix = prefix;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public Integer getPrefix() {
        return prefix;
    }

    public void setPrefix(Integer prefix) {
        this.prefix = prefix;
    }
}
